package oo6;

public class HabaDog extends Dog {
	// 遮罩了父类的同名属性
	protected String name = "哈巴狗";

	public void print() {
		System.out.println("这条狗叫" + name);
	}

	public static void printLegs() {
		System.out.println("哈巴狗有4条腿");
	}
}
